/*
 * @Author: zhaoxiangyu@
 * @Date: 2021-11-28 19:58:43
 * @LastEditors: 647355931@qq.com
 * @LastEditTime: 2021-11-28 20:19:40
 * @Description: file content
 */

export function getValueFromEvent(args) {
  const e = args;
  return e && e.target
    ? e.target.type === 'checkbox'
      ? e.target.checked
      : e.target.value
    : e;
}
